﻿using System.Collections;
using FlowCanvas;
using FlowCanvas.Nodes;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class ShowBattleStart  : LatentActionNodeBase
    {
        public override bool allowRoutineQueueing { get { return false; } }
        
        public IEnumerator Invoke()
        {
            BlueprintUtils.ShowBattleStart();
            yield return null;
        }
        
        protected override void OnRegisterDerivedPorts(FlowNode node) {
            node.AddFlowInput("In", (f) => { Begin(Invoke(), f); });
        }
    }
}